package top.yueyazhui.mysql_audit_log.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import top.yueyazhui.mysql_audit_log.util.AuditLogUtil;

@Component
public class AuditLogStorage {

    @Autowired
    AuditLogUtil auditLogUtil;

    @Scheduled(cron = "* * 3 * * ?")
    public void cron() {
        auditLogUtil.saveAuditLogToMysQL();
    }
}
